const dao = require('../dao/serviceTeamDao');
const express = require('express');

const router = express.Router();

router.get('/GetLegalServiceTeamList', (req, res) => {
  const data = dao.getLegalServiceTeamList();
  res.json(data);
});

router.get('/GetLegalServiceTeamInfo?:GuidLegalServiceTeam', (req, res) => {
  const guidLegalServiceTeam = req.query['GuidLegalServiceTeam'] || '这是一个默认的值，因为你在参数中没有传递Guid';
  const data = dao.getLegalServiceTeamInfo(guidLegalServiceTeam);
  res.json(data);
});

module.exports = router;